package com.mall.bargain.mapper;

import com.mall.common.response.CommonResponse;
import com.mall.entity.bargain.BgBargain;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author LiJinYang
 * @version 1.0
 * @email 283006176@qq.com
 * @date 2021/07/19 16:12
 */
@Mapper
public interface BargainListMapper {
    /**
     * 查询全部
     * @return
     */
    List<BgBargain> findAll();

    /**
     * 分页查询
     * @param bgBargain
     * @return
     */
    List<BgBargain> findPage(BgBargain bgBargain);

    /**
     * 逻辑删除
     * @param id
     * @return
     */
    Integer delete(Long id);
}
